\documentclass[a4paper,spanish]{article}
\usepackage[pdftex]{graphicx}
\usepackage[spanish]{babel}
\usepackage{makeidx}
\usepackage{multirow}
\usepackage{caratula}
\usepackage[utf8]{inputenc}
\usepackage{a4wide}
\usepackage{amsthm}

\usepackage{hyperref}
\usepackage{moreverb}
\usepackage{color}
\usepackage{fancyhdr}
\usepackage{lastpage}
\usepackage{tikz}
\usepgflibrary{shapes}
\usepackage{latexsym} 
\pagestyle{fancy}

\usepackage{subfig}

\usepackage{tikz}
\usetikzlibrary{arrows,%
                petri,%
                topaths}%
\usepackage{tkz-berge}

% Una macro para incluir los gráficos :P
\newcommand{\mifig}[2]{
	\begin{figure}[H]
	\centering
	\includegraphics[width=.8\textwidth]{#1.png}
	\caption{#2}
	\end{figure}
}

% \usepackage{verbatim}
%\usetikzlibrary{arrows,shapes}

%Configuraciones del paquete algorithm y algorithmic
\usepackage{algorithmic}
\usepackage{algorithm}
%\numberwithin{algorithm}{section}

\renewcommand{\algorithmicrequire}{\textbf{Requiere:}}
\renewcommand{\algorithmicensure}{\textbf{Asegura:}}
\renewcommand{\algorithmicend}{\textbf{fin}}
\renewcommand{\algorithmicif}{\textbf{si}}
\renewcommand{\algorithmicthen}{\textbf{entonces}}
\renewcommand{\algorithmicelse}{\textbf{sino}}
\renewcommand{\algorithmicelsif}{\algorithmicelse\ \algorithmicif}
\renewcommand{\algorithmicendif}{\algorithmicend\ \algorithmicif}
\renewcommand{\algorithmicfor}{\textbf{para}}
\renewcommand{\algorithmicforall}{\textbf{para todos}}
\renewcommand{\algorithmicdo}{\textbf{hacer}}
\renewcommand{\algorithmicendfor}{\algorithmicend\ \algorithmicfor}
\renewcommand{\algorithmicwhile}{\textbf{mientras}}
\renewcommand{\algorithmicendwhile}{\algorithmicend\ \algorithmicwhile}
\renewcommand{\algorithmicloop}{\textbf{ciclo}}
\renewcommand{\algorithmicendloop}{\algorithmicend\ \algorithmicloop}
\renewcommand{\algorithmicrepeat}{\textbf{repetir}}
\renewcommand{\algorithmicuntil}{\textbf{hasta}}
\renewcommand{\algorithmicprint}{\textbf{imprimir}}
\renewcommand{\algorithmicreturn}{\textbf{devolver}}
\renewcommand{\algorithmictrue}{\textbf{verdadero}}
\renewcommand{\algorithmicfalse}{\textbf{falso}}

\renewcommand{\listalgorithmname}{Lista de Algoritmos}

\newcommand\keyword[1]{\textit{#1}}
\newcommand\code[1]{\texttt{#1}}
\newcommand\seguidodeunpunto{.}
\newcommand\enelservidor{@}
\newcommand\gm[1]{#1\enelservidor gmail\seguidodeunpunto com}
\newcommand\hm[1]{#1\enelservidor hotmail\seguidodeunpunto com}

\makeindex

\begin{document}

%=======================
% CARATULA
%=======================
\materia{Algoritmos y Estructuras de Datos III}
\submateria{Primer Cuatrimestre de 2011}
\titulo{Trabajo Pr\'actico 2}
\grupo{Grupo 1}
\integrante{Angel Abregú}{082/09}{\hm{angelj\_a}}
\integrante{Ezequiel Aguerre}{246/07}{\gm{ezeaguerre}}
\integrante{Mauro Bender}{623/07}{\gm{maurobender}}
\integrante{Juli\'an Flores}{115/08}{\hm{cristof\_87}}

\maketitle

\tableofcontents
\pagebreak

%=======================
% SECCIONES
%=======================

%descomentar una vez agregada esa seccion
\input{problema1/problema1.tex}
\input{problema2/problema2.tex}
\input{problema3/problema3.tex}


\end{document}
